<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>021-数组排序.html</title>
</head>
<body>
		
</body>
<script>
	const arr = [22,4,4,5,6,3]
	console.log(arr.sort(function(n1,n2){
		return n1 - n2
	}))
	// console.log(arr.sort((n1,n2)=>n1-n2))	
</script>
</html>